package cqyt.pojo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author 涵菜
 * @version 1.0
 * 运输机
 */
@Getter
@Setter
@NoArgsConstructor
public class TransportAircraft extends Aircraft{
    /**
     * 运输容量空间大小
     * 单位为吨
     */
    private int capacity;

    public TransportAircraft(String name, int quantity, int flightAltitude, int flightSpeed, boolean stealthPerformance, String radarModel, int capacity) {
        super(name, "transportAircraft", quantity, flightAltitude, flightSpeed, stealthPerformance, radarModel);
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        return "传输机{" +
                super.toString()+
                "运输容量空间大小=" + capacity +
                '}';
    }
}
